<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>{$jerry.lang.add_custom}</title>
    <hdjs/>
    <bootstrap/>
    <script type="text/javascript">
        $(function(){
            //判断编辑器是否为空
            $('#add-button').click(function() {
                var content = UE.getEditor('hd_content').getContentTxt();
                var content = $.trim(content);
                if(content){
                    return true;
                }
                alert('内容不能为空');
                return false;
               // 
            });
            
        })
    </script>
    <css file="__CONTROL_TPL__/css/css.css"/>
    <style type="text/css">
        .checkbox{
             margin-left:5px;
             width:90px;
             margin-top: 10px;
        }
        textarea{
            width: 300px;
            height: 100px;
        }
    </style>
</head>
<body>
<div class="wrap">
    <div class="title-header">{$jerry.lang.deal_custom}</div>
    <form action="" method="post" class="form-inline hd-form" id="add-arc" enctype="multipart/form-data">
        <table class="table1">
            <tr>
                <th class="w100">{$jerry.lang.custom_name}</th>
                <td class="w100">
                    <input type="text" name="custom_name" class="w200"/> 
                </td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">{$jerry.lang.serive_type}</th>
                <td>
                <select name="serve_type" id="">
                    <option value="{$jerry.lang.serive_linux}">{$jerry.lang.serive_linux}</option>
                    <option value="{$jerry.lang.serive_php_shopx}">{$jerry.lang.serive_php_shopx}</option>
                    <option value="{$jerry.lang.serive_php_website}">{$jerry.lang.serive_php_website}</option>
                    <option value="{$jerry.lang.serive_php_weixin}">{$jerry.lang.serive_php_weixin}</option>
                </select>
      
                </td>
                <td></td>
            </tr>

            <tr>
                <th class="w100">{$jerry.lang.custom_email}</th>
                <td class="w100">
                    <input type="text" name="custom_email" class="w200"/> 
                </td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">{$jerry.lang.custom_sex}</th>
                <td class="w100">
                   <input type="radio" value="0" name="custom_sex" checked="checked"  />{$jerry.lang.male}
                   <input type="radio" value="1" name="custom_sex"/>{$jerry.lang.female}
                </td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">{$jerry.lang.remark}</th>
               <td>
                    <ueditor  width='300' height='200' name='note' style="2"/>
                </td>
                <td></td>
            </tr>
       </table>
       <table class="table1">
            <tr>
                <th class="w100">{$jerry.lang.buy_time}</th>
                <td class="w100" ><input type="text" name="serve_year" /></td>
                <td class="w100">{$jerry.lang.start_time}：</td>
                <td class="w100"><input type="text" readonly="readonly" id="satartime" name="satartime" value="{|date:'Y/m/d h:i:s'}"></td>
                 <td class="w100">{$jerry.lang.end_time}：</td>
                <td class="w100"><input type="text" readonly="readonly" id="endtime" name="endtime" value="{|date:'Y/m/d h:i:s'}"></td>
                <td></td>
                 <td></td>
                  <td></td>

            </tr>
        
        </table>
        <div class="position-bottom">
            <input type="submit" class="hd-success" value="添加" id="add-button"/>
        </div>
    </form>
    <script>
        $('#satartime').calendar({format: 'yyyy/MM/dd HH:mm:ss'});
        $('#endtime').calendar({format: 'yyyy/MM/dd HH:mm:ss'});
    </script>
</div>
</body>
</html>